package org.dromara.merchants.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import org.dromara.merchants.domain.TaAssociation;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 关联视图对象 ta_association
 *
 * @author xiyin321
 * @date 2024-07-08
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TaAssociation.class)
public class TaAssociationVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long associationId;

    /**
     * 父ID
     */
    @ExcelProperty(value = "父ID")
    private Long parentId;

    /**
     * 名称
     */
    @ExcelProperty(value = "名称")
    private String name;

    /**
     * 可选列表
     */
    @ExcelProperty(value = "可选列表")
    @TableField(typeHandler = JacksonTypeHandler.class,value = "options")
    private List<String> options;

    /**
     * 可选数量
     */
    @ExcelProperty(value = "可选数量")
    private Long quantity;


    /**
     * 类型
     */
    @ExcelProperty(value = "类型")
    private String type;


}
